source 'https://cdn.cocoapods.org/'

workspace './HBuilder-Hello-3.96.xcworkspace'
project './HBuilder-Hello/HBuilder-Hello.xcodeproj'

platform :ios, '11.0'
use_frameworks!

# ignore all warnings from all dependencies
inhibit_all_warnings!

def dev_pods
  pod 'SwiftLint', '~>0.54.0', configurations: ['Debug']
  pod 'SwiftGen', '~>6.6.2', configurations: ['Debug']
end

def core_pods
  pod 'RxSwift', '~>6.6.0'
  pod 'RxRelay', '~>6.6.0'
  pod 'Alamofire', '~>5.8.1'
end

def thirdparty_pods
  pod 'Firebase/Analytics', '~>10.18.0'
  pod 'Firebase/Crashlytics', '~>10.18.0'
  pod 'Firebase/RemoteConfig', '~>10.18.0'
  pod 'Firebase/Performance', '~>10.18.0'
end

def ui_pods
  pod 'SnapKit', '~>5.6.0'
  pod 'Kingfisher', '~>6.3.1'
  pod 'RxCocoa', '~>6.6.0'
  pod 'RxDataSources', '~>5.0.0'
end

def internal_pods
  # pod 'DesignKit', :path => './Frameworks/DesignKit', :inhibit_warnings => false 
  pod 'Huo15-WifiModule', :path => './Huo15-WifiModule', :inhibit_warnings => true
end

def test_pods
  pod 'Quick', '~>5.0.1'
  pod 'Nimble', '~>10.0.0'
  pod 'RxTest', '~>6.6.0'
  pod 'RxBlocking', '~>6.6.0'
end

target 'HBuilder' do
  # dev_pods
  # core_pods
  # thirdparty_pods
  # ui_pods
  internal_pods
end

target 'HBuilderTests' do
  core_pods
  thirdparty_pods
  test_pods
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
    end
  end
end

